﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>

<div class="box">
    <h2>Login</h2>
    
    <% using (Html.BeginForm("Login", "Users", FormMethod.Post, new { id = "loginform", @class = "standardform" }))
       { %>
    <div class="boxcontent">
        <table class="fullwidth">
            <tr>
                <td>
                    Username
                </td>
                <td>
                    <%= Html.TextBox("username", "", new { @class = "fullwidth" })%>
                </td>
            </tr>
            <tr>
                <td>
                    Password
                </td>
                <td>
                    <%= Html.Password("password", "", new { @class = "fullwidth" })%>
                </td>
            </tr>
        </table>
    </div>
    <div class="boxfooter">
        <%= Html.ActionLink("Join", "Create", "Users")%>
        or
        <input type="submit" value="Login" />
    </div>
    <% } %>
</div>
